const axios = require('axios')
const appId = 'wx5d2f4ea89f50fd7b'
const appSecret = 'bbce671c3518c480a4f58c878f8fc6d4'
const code2Session = (code) => axios.get(`https://api.weixin.qq.com/sns/jscode2session?appid=${appId}&secret=${appSecret}&js_code=${code}&grant_type=authorization_code`)

module.exports = {
    appId,
    appSecret,
    code2Session
}